package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * AccJnGlTrans generated by hbm2java
 */
@Entity
@Table(name="acc_jn_gl_trans"
    ,catalog="lmis"
    , uniqueConstraints = @UniqueConstraint(columnNames={"JN_TRANS_REC_NO", "JN_TRANS_REC_SEQ_NO"}) 
)
public class AccJnGlTrans  implements java.io.Serializable {


     private long jnRecNo;
     private Date jnRecDate;
     private Short accPeriodNo;
     private Short accPeriodMonthNo;
     private Short orgNo;
     private Short loanContractGrpNo;
     private Short jnTransTypeNo;
     private Long jnTransRecNo;
     private Short jnTransRecSeqNo;
     private String jnTransCode;
     private String jnDescr;
     private BigDecimal jnAmt;
     private String jnDocCode;
     private String jnComment;
     private Short createdUserNo;
     private Date createdDtm;
     private Short statusPosted;
     private Set<AccJnGlTransDetail> accJnGlTransDetails = new HashSet<AccJnGlTransDetail>(0);

    public AccJnGlTrans() {
    }

	
    public AccJnGlTrans(long jnRecNo) {
        this.jnRecNo = jnRecNo;
    }
    public AccJnGlTrans(long jnRecNo, Date jnRecDate, Short accPeriodNo, Short accPeriodMonthNo, Short orgNo, Short loanContractGrpNo, Short jnTransTypeNo, Long jnTransRecNo, Short jnTransRecSeqNo, String jnTransCode, String jnDescr, BigDecimal jnAmt, String jnDocCode, String jnComment, Short createdUserNo, Date createdDtm, Short statusPosted, Set<AccJnGlTransDetail> accJnGlTransDetails) {
       this.jnRecNo = jnRecNo;
       this.jnRecDate = jnRecDate;
       this.accPeriodNo = accPeriodNo;
       this.accPeriodMonthNo = accPeriodMonthNo;
       this.orgNo = orgNo;
       this.loanContractGrpNo = loanContractGrpNo;
       this.jnTransTypeNo = jnTransTypeNo;
       this.jnTransRecNo = jnTransRecNo;
       this.jnTransRecSeqNo = jnTransRecSeqNo;
       this.jnTransCode = jnTransCode;
       this.jnDescr = jnDescr;
       this.jnAmt = jnAmt;
       this.jnDocCode = jnDocCode;
       this.jnComment = jnComment;
       this.createdUserNo = createdUserNo;
       this.createdDtm = createdDtm;
       this.statusPosted = statusPosted;
       this.accJnGlTransDetails = accJnGlTransDetails;
    }
   
     @Id 

    
    @Column(name="JN_REC_NO", unique=true, nullable=false)
    public long getJnRecNo() {
        return this.jnRecNo;
    }
    
    public void setJnRecNo(long jnRecNo) {
        this.jnRecNo = jnRecNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="JN_REC_DATE", length=19)
    public Date getJnRecDate() {
        return this.jnRecDate;
    }
    
    public void setJnRecDate(Date jnRecDate) {
        this.jnRecDate = jnRecDate;
    }

    
    @Column(name="ACC_PERIOD_NO")
    public Short getAccPeriodNo() {
        return this.accPeriodNo;
    }
    
    public void setAccPeriodNo(Short accPeriodNo) {
        this.accPeriodNo = accPeriodNo;
    }

    
    @Column(name="ACC_PERIOD_MONTH_NO")
    public Short getAccPeriodMonthNo() {
        return this.accPeriodMonthNo;
    }
    
    public void setAccPeriodMonthNo(Short accPeriodMonthNo) {
        this.accPeriodMonthNo = accPeriodMonthNo;
    }

    
    @Column(name="ORG_NO")
    public Short getOrgNo() {
        return this.orgNo;
    }
    
    public void setOrgNo(Short orgNo) {
        this.orgNo = orgNo;
    }

    
    @Column(name="LOAN_CONTRACT_GRP_NO")
    public Short getLoanContractGrpNo() {
        return this.loanContractGrpNo;
    }
    
    public void setLoanContractGrpNo(Short loanContractGrpNo) {
        this.loanContractGrpNo = loanContractGrpNo;
    }

    
    @Column(name="JN_TRANS_TYPE_NO")
    public Short getJnTransTypeNo() {
        return this.jnTransTypeNo;
    }
    
    public void setJnTransTypeNo(Short jnTransTypeNo) {
        this.jnTransTypeNo = jnTransTypeNo;
    }

    
    @Column(name="JN_TRANS_REC_NO")
    public Long getJnTransRecNo() {
        return this.jnTransRecNo;
    }
    
    public void setJnTransRecNo(Long jnTransRecNo) {
        this.jnTransRecNo = jnTransRecNo;
    }

    
    @Column(name="JN_TRANS_REC_SEQ_NO")
    public Short getJnTransRecSeqNo() {
        return this.jnTransRecSeqNo;
    }
    
    public void setJnTransRecSeqNo(Short jnTransRecSeqNo) {
        this.jnTransRecSeqNo = jnTransRecSeqNo;
    }

    
    @Column(name="JN_TRANS_CODE", length=20)
    public String getJnTransCode() {
        return this.jnTransCode;
    }
    
    public void setJnTransCode(String jnTransCode) {
        this.jnTransCode = jnTransCode;
    }

    
    @Column(name="JN_DESCR", length=500)
    public String getJnDescr() {
        return this.jnDescr;
    }
    
    public void setJnDescr(String jnDescr) {
        this.jnDescr = jnDescr;
    }

    
    @Column(name="JN_AMT", precision=15)
    public BigDecimal getJnAmt() {
        return this.jnAmt;
    }
    
    public void setJnAmt(BigDecimal jnAmt) {
        this.jnAmt = jnAmt;
    }

    
    @Column(name="JN_DOC_CODE", length=50)
    public String getJnDocCode() {
        return this.jnDocCode;
    }
    
    public void setJnDocCode(String jnDocCode) {
        this.jnDocCode = jnDocCode;
    }

    
    @Column(name="JN_COMMENT", length=500)
    public String getJnComment() {
        return this.jnComment;
    }
    
    public void setJnComment(String jnComment) {
        this.jnComment = jnComment;
    }

    
    @Column(name="CREATED_USER_NO")
    public Short getCreatedUserNo() {
        return this.createdUserNo;
    }
    
    public void setCreatedUserNo(Short createdUserNo) {
        this.createdUserNo = createdUserNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATED_DTM", length=19)
    public Date getCreatedDtm() {
        return this.createdDtm;
    }
    
    public void setCreatedDtm(Date createdDtm) {
        this.createdDtm = createdDtm;
    }

    
    @Column(name="STATUS_POSTED")
    public Short getStatusPosted() {
        return this.statusPosted;
    }
    
    public void setStatusPosted(Short statusPosted) {
        this.statusPosted = statusPosted;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="accJnGlTrans")
    public Set<AccJnGlTransDetail> getAccJnGlTransDetails() {
        return this.accJnGlTransDetails;
    }
    
    public void setAccJnGlTransDetails(Set<AccJnGlTransDetail> accJnGlTransDetails) {
        this.accJnGlTransDetails = accJnGlTransDetails;
    }




}


